# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: wrapper_demo01.py
@time: 2021/02/05
"""

routes = {}

def router(path):
    ...
    def outer(func):
        ...
        routes[path] = func
        return func
    return outer

# index = router('/')(index)
@router(path='/')
def index():
    ...
    print('111')


if __name__ == '__main__':
    pass
    routes.get('/')()